<template>

        <div style="background-color: aquamarine;">
            <h3>
                我是一个子组件
            </h3>
            <button @click="num++">{{ num }}</button>
        </div>
</template>


<script setup>
    import {ref} from "vue"
    const num = ref(0)
</script>